package com.sykj.bsc.wsy.mapper;

import java.util.List;
import java.util.Map;

import com.sykj.bsc.wsy.model.Bis_coupon_active;
import com.sykj.bsc.wsy.model.Bis_coupon_record;
import com.sykj.bsc.zjj.bean.Bis_custom_user;

public interface Bis_coupon_activeMapper {
	/**
	 *  根据`status`=2查询bis_coupon_active表信息selectBis_coupon_active
	 * @param active
	 * @return
	 */
	public List<Map> selectBis_coupon_active(Bis_coupon_active active);
	/**
	 * 根据active_id查询bis_coupon_record表信息selectBis_coupon_record 
	 * @param record
	 * @return
	 */
	public List<Bis_coupon_record> selectBis_coupon_record(Bis_coupon_record record);
	/**
	 * 根据active_id删除bis_coupon_active表对bis_coupon_active表is_del信息做修改deleteBis_coupon_active
	 * @param active_id
	 */
	public void deleteBis_coupon_active(int active_id);
	/**
	 * 对bis_coupon_active与bis_coupon_record同时做添加操作insertBis_coupon_active
	 * @param active
	 */
	public void insertBis_coupon_active(Bis_coupon_active active);
	/**
	 * saveCouponRecord
	 * @param record
	 */
	public void saveCouponRecord(Bis_coupon_record record);
	/**
	 * updateRecordStatus
	 * @param recordId
	 */
	public void updateRecordStatus(int recordId);
	/**
	 * selectOldRecord
	 * @param hasDay
	 * @return
	 */
	public List<Bis_coupon_record> selectOldRecord(int hasDay);
	
	/**
	 * 创建人：迟磊
	 * 用途：获取用户姓名及用户号
	 */
	public List<Bis_custom_user> selectBis_custom_user();
	
}
